package com.bml.www.teacher.account.forgetpwd;

import android.app.Activity;
import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.bml.www.teacher.R;
import com.bml.www.teacher.account.ui.LoginActivity;
import com.pachong.android.baseuicomponent.activity.BaseActivity;

import butterknife.OnClick;

public class FindSuccessActivity extends BaseActivity {


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        initToolBar();
    }

    public static void start(Activity activity) {
        Intent intent = new Intent(activity, FindSuccessActivity.class);
        activity.startActivity(intent);

    }

    private void initToolBar() {
        getCustomToolbar().setBackgroundColor(Color.parseColor("#ffffff"));
        getCustomToolbar().setTitle("找回密码");
        //设置左边返回键
        getCustomToolbar().addLeftImageButton(getResources().getDrawable(R.mipmap.backby), new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });
    }
    @Override
    public View createDataView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        return inflater.inflate(R.layout.activity_find_success, null);
    }

    @OnClick(R.id.gotoLogin)
    public void onViewClicked() {
        LoginActivity.start(FindSuccessActivity.this);
        finish();
    }
}
